//
//  Book.m
//  03_HomeWork
//
//  Created by dllo on 16/7/6.
//  Copyright © 2016年 LST. All rights reserved.
//

#import "Book.h"

@implementation Book

- (instancetype) initWithName:(NSString *) name
                        Price:(NSInteger)price {
    self = [super init];
    if (self) {
        _bookName = name;
        _bookPrice = price;
    }
    return self;
}
+ (instancetype) bookWithName:(NSString *) name
                        Price:(NSInteger) price {
    return [[Book alloc] initWithName:name Price:price];
}

@end
